package join;


public class HistogramBin implements Comparable<HistogramBin>{
	private int bottomBin;
	private int topBin;
	private int count;
	public HistogramBin(int bottomBin, int topBin, int count){
		this.bottomBin = bottomBin;
		this.topBin = topBin;
		this.count = count;
	}
	public int getTopBin(){
		return topBin;
	}
	public int getBottomBin(){
		return bottomBin;
	}
	public int getCount(){
		return count;
	}
	@Override
	public int compareTo(HistogramBin o) {
		if (this.topBin == o.topBin)
            return 0;
        else if ((this.topBin) > o.topBin)
            return -1;
        else
            return 1;
	}
}
